package com.mlnx.ui.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.mlnx.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@ApiModel("用户角色")
@Accessors(chain = true)
@TableName("t_role")
public class Role extends BaseEntity {

    @TableId(type = IdType.AUTO)
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("角色名称")
    private String roleName;

    @ApiModelProperty("角色KEY")
    private String roleKey;
}
